package com.example.service;

import com.example.pojo.entity.Activity;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ActivityService {
    void insert(Activity activity);

    void updateById(Activity activity);

    void removeById(Integer id);

    void removeBatchByIds(List<Integer> ids);

    List<Activity> list();

    Activity getById(Integer id);

    PageInfo<Activity> selectByPage(Integer pageNum, Integer pageSize, String name,Integer showState);
}
